package com.stylefeng.guns.modular.system.service.impl;

import com.stylefeng.guns.common.persistence.model.FulltimeTrainRule;
import com.stylefeng.guns.common.persistence.dao.FulltimeTrainRuleMapper;
import com.stylefeng.guns.modular.system.service.IFulltimeTrainService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.stylefeng.guns.modular.system.transfer.FullTimeTrainDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 脱产培训规则 服务实现类
 * </p>
 *
 * @author jondai
 * @since 2017-12-27
 */
@Service
public class FulltimeTrainServiceImpl extends ServiceImpl<FulltimeTrainRuleMapper, FulltimeTrainRule> implements IFulltimeTrainService {

    @Autowired
    private FulltimeTrainRuleMapper fulltimeTrainRuleMapper;

    @Override
    public void empty() {
        fulltimeTrainRuleMapper.empty();
    }

    @Override
    public List<FulltimeTrainRule> selectAll() {
        return fulltimeTrainRuleMapper.selectAll();
    }

    @Override
    public List<FulltimeTrainRule> selectByEmpType(Integer empType) {
        return fulltimeTrainRuleMapper.selectByEmpType(empType);
    }

    @Override
    public void insertFullTimeTrain(FullTimeTrainDto fullTimeTrains, List<FulltimeTrainRule> jyTrains) {

    }
}
